home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
351-375
/
366
/
loancalc
/
loancalc.doc
< prev
next >
Wrap
Text File
|
1995-03-14
|
11KB
|
261 lines
LoanCalc V1.2
=============
Although there are many mortgage calculation programs available, all that
I have seen are designed around 'fixed' mortgages, ie. mortgages that have
a fixed payment due on a fixed date. As well as providing an Amortization
Table for Fixed Mortgages with Monthly, Semi-Monthly, Bi-Weekly and Weekly
payment schedules, LoanCalc (LC) is designed to track 'Open' mortgages
that allow any size payment to be made at any time.
I apologize for the size of this program. Being a 'weekend' programer,
my programing style could not be described as elegant. This program is
what you might call crude but effective. Obviously written in AmigaBASIC,
it lacks the polish of other programs, but until a better program comes
along to do the same job, this one may fill the gap. By the way,
if there is another program out there that does this, I would appreciate
if someone would let me know - I'll probably start using it.
Since LC requires a lot of keyboard input anyway, it is entirely
keyboard driven (except for cancelling error messages, heaven forbid!).
At any prompt, if 'R' is entered as the response, then LC will escape from
the data entry mode and return to the Main Menu.
If LC is launched from Workbench, icons will be created for all '.data' files
created, in case you would like to edit the file. These icons have no
default tool, however, since I don't know which editor you would be using to
edit the file. You can supply your own using the Workbench 'Info' Menu item.
If launched from the CLI, no icons are created.
While running, LC will request a directory and filename under which the
program data will be kept. If no directory is specified, then obviously
the Current Directory will be used. Two files will then be generated
in that directory. One, 'Filename.data', will store all information
regarding payments made, dates, interest paid, total interest, etc.
The other, 'Filename.var', will store all the variables required by LC,
which will vary from one session to the next.
While entering data, there are lots of tiresome 'Are you sure?' type
prompts, but although nobody likes them when the data is correct,
they are useful in case of finger-trouble.
LC opens on the Main Menu, where there are 8 selections:
1. Start a New Mortgage/Loan File
2. Enter a Payment to an Existing Open-type File
3. Re-Calculate the Same Loan (Fixed-type only)
4. View a Data File
5. Send a File to the Printer
6. Information
7. About
8. Quit
Just press the appropriate number on either number pad.
Selection 1 should be made if you have not already opened a file under
the proposed filename, for example 'FirstMortgage', and there is no
'FirstMortgage.data' and 'FirstMortgage.var' files in the specified
directory. A file will then be built from scratch.
The Open-type file will be built one entry at a time, using the data inputed.
This option is good for Open Mortgages, Line of Credit type loans,
or any loan that does not have a Fixed repayment schedule.
This file cannot 'think ahead', because it cannot predict when your payments
will be made, or exactly how large or how small they will be.
Once a data entry has been made, you have the option of making another
(Press any key), totaling the file (Left Alternate-Shift-T),
or returning to the Menu (R). Left Alternate-Shift-T merely prints
a footnote to the file, stating your Total Payments so far, and by how much
the Principal was reduced, and then returns you to the Menu. It is intended
to be used after the last payment is made, but may be used beforehand.
The Fixed-type file will take all the parameters pertinent to your loan,
and then display the Amortization Table for that loan for any period
from one month, up to the Amortization Period of the loan.
If you are allowed to make lump sum payments to your Fixed loan, then run
the Amortization Table for a number of months such that the last payment
displayed is the date on which the lump sum payment is to be made.
The Principal reduction will be made on that date. Since all payments must
be made in chronological order, once the Amortization Table has been
displayed for a month beyond one in which you want to make a
lump sum payment, you would have to go back to Selection 3,
and re-select the number of months to display.
Selection 2 should be made to enter more payments to an Open Mortgage/Loan
file which has already been opened with Selection 1. Although there is a
provision to make lump payments on a Fixed-type loan, that is not done using
this Menu item. Just enter the filename at the prompt, or if re-entering
the current file, just hit <Return>.
Selection 3 is for Fixed-type loans only. If you have already entered the
Mortgage/Loan parameters (Principal, Interest Rate, Commencement Date,
Interest Compound Period and Filename), the LC will use these numbers,
ask for confirmation, and request the Amortization Period/Monthly Payment.
Any changes to these parameters may be made at this time.
In this way, the same numbers can be quickly 'fiddled' to show various
combinations of these variables. This feature cannot be used for Open-type
loans for the reason mentioned above - Open loans cannot be predicted.
Selection 4 will ask for the filename of the file you want to View.
Enter the filename as it was entered when the file was created in Selection 1,
without the '.data' or '.var' extensions, or just hit <Return> as prompted
if the desired file is the current file. If the file is not in the
Current Directory, then naturally the path will have to be included.
You may then see the file almost exactly as it will look when printed
using the following selection. (The printed version will be page formated).
The data you will be looking at is the same data that was put on the screen;
if it wasn't on the screen, it won't be in the file. So if you want to see
(or print) the whole Amortization Table in the data file, press <Return>
when when prompted 'Amortization Table for how many months', so that
the whole Table will be calculated and displayed.
A text reader such as the enclosed View program would be ideal for looking at
these files, as you may have noticed if you have examined the sample files
enclosed with this program. However, I wanted the program to be completely
stand-alone, and so opted to include the primitive forward-only viewer.
Selection 5 will ask for the filename of the file you want printed.
Enter the filename as in the previous selection. The 'Filename.data' file
for the requested filename will then be sent to the PRT: device.
Selection 6 just recaps some of the information in this file, in case
nobody reads it.
Selection 7 tells you who to blame if something goes wrong.
Selection 8 Exits the program.
I have included woth this program 4 sample '.data' files to give you an idea
of what your print-out will look like. The 4 files represent the same
$100,000 mortgage, with an Interest Rate of 12.75%, amortized over 5 years,
and includes one lump sum payment made on the second anniversary of the loan.
One shows the Amortization Table if you had chosen to repay the mortgage
with Monthly payments, another with Semi-Monthly payments, and the others
with Bi-Weekly and Weekly payments.
The Print-Out
-------------
The 'Payment' date shown for each payment will depend on the type of
Mortgage/Loan you select, as follows:
Open Mortgages will naturally show the payment on whatever date you enter.
Fixed Mortgages:
If you choose to make Monthly Payments, then the payments will be shown
as due on the day of the month that the loan was taken out. So if you
want payments due on the 1st of the month, show the loan as starting
on the 1st day of the previous month.
Semi-Monthly Payments are always shown as due on the 1st and 15th day
of the month.
Bi-Weekly Payments are shown as first due 14 days after the starting date
of the loan, and due every 14 days thereafter.
Weekly Payments are shown as first due 7 days after the starting date
of the loan, and due every 7 days thereafter.
LIMITATIONS
-----------
Some limitations of LC are:
All data entries MUST be in chronological order.
(I just plain didn't know how to avoid this).
An entry must be made for every 6 months or so. This as necessary to
keep the year-ends straight, so that LC knows which are leap-years.
(The formula is slightly different in leap-years).
There is a bug that seems to crop up every now and again.
As LC is writing some information to a .data or .var file,
a FILE ALREADY OPEN error will sometimes pop up. As all of my OPEN
commands are immediately preceded by a CLOSE command on the same line,
I am confused as to why this would happen. (A lot of YOU probably know,
but I don't). At any rate, I built a RESET command into the
Error Handler, which seems to work well enough to allow the file to be
rebuilt from Menu Item 3, rather than have to start from scratch at
Menu Item 1.
Files included with this program:
---------------------------------
LoanCalcV1.2 LoanCalcV1.2.info
LoanCalc.doc LoanCalc.doc.info
Monthly.data Monthly.data.info
Semi-Monthly.data Semi-Monthly.data.info
Bi-Weekly.data Bi-Weekly.data.info
Weekly.data Weekly.data.info
View - the PD text reader by Bryan Ford (available on Fred Fish disk #163).
I would like to take this opportunity to add my voice to the chorus of
roughly one million others out there, and thank Fred Fish for the
wonderful work he is doing on behalf of all Amiga owners.
My thanks also to all of the PD authors out there who so generously donate
the fruits of their labour for the enjoyment of others. People like
Bryan Ford and Dick Taylor, who wrote the BREF program forthe Amiga,
(available on Fred Fish disk #283), I believe are the heart and soul
of the Amiga. Thank you ALL.
Hope someone finds this useful.
Any comments, problems or bug reports are welcome. Please send to:
Robert Bromley
4080 Longo Circle
Malton, Ontario
CANADA L4T 4C7